
function create(){
    return function(n){
        if(n<=1) return 1;
        return n*arguments.callee(n-1);
    }
}

console.log(create()(3));

function setName(obj){
    obj.name="张三";
    obj = new Object();
    obj.name = "李四";
    console.log(obj.name);
    
}

var person = new Object();
setName(person);
console.log(person.name);


console.log("--------------");

function funcA(){
    console.log("this is func a");
    
}

function funcB(fun){
    fun();
}
funcB(funcA);
